package com.cheng.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cheng.admin.model.Order;
import com.cheng.common.domain.BaseSearchVO;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author 起凡
 * @since 2022-01-17
 */
public interface OrderService extends IService<Order> {
    Order create(Order order);
    Order get(Long id);
    PageInfo<Order> listOrder(BaseSearchVO baseSearchVO);
    String callBack(HttpServletRequest request) throws Exception;

    String pay(Long id) throws Exception;

    Map<String, String> ship(Long id, String logisticsNo);

    Map<String, String> confirm(Long id);

    Map<String, String> cancel(Long id);

}
